

// 添加底部跳转数组属性判定
export interface MyBarItem{
    id:number,
    to:string,
    icon:string,
    // 加？可选填
    title?:string
}

// 父传子属性判断
// export interface MyTopBar{
//   title:string,
//   back?:boolean
// }

// 轮播图每一项的接口
export interface MyBannerItem {
    alt?: string,
    readonly bannerid: string,
    flag?: boolean,
    img: string
  }
  
  // 秒杀商品每一项的接口
  type MyIsSale = 0 | 1
export interface MyHotItem {
  readonly proid: string,
  img1: string,
  img2: string,
  img3: string,
  img4: string,
  sales: string,
  proname: string,
  issale: MyIsSale,
  originprice: number,
  discount: number,
  category: string,
  brand: string,
  desc: string
}
  
  // 热门搜索商品的接口
  export interface MyHotSearchItem {
    readonly wordid: string,
    num: string,
    keyword?: string
  }

// 分类商品自定义数组的接口
export interface MyCateBrandGoodsItem {
  cate: string,
  brand: string,
  list: MyHotItem[]
}


// 购物车商品的每一项
export interface MyCartItem {
  cartid: string,
  discount: number,
  flag: boolean,
  img1: string,
  num: number,
  originprice: number,
  proid: string,
  proname: string,
  userid: string,
}

  